package com.toast.test;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class ToastTestActivity extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
	Button display;
	EditText input;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        display = (Button) findViewById(R.id.button1);
        display.setText("Display");
        display.setOnClickListener(this);
        input = (EditText) findViewById(R.id.editText1);
    }

	public void onClick(View v) {

			Toast.makeText(this, input.getText().toString(), Toast.LENGTH_LONG).show();
		
	}
}